//
//  JSONAnalysis.swift
//  DianShangWen
//
//  Created by 周文轩 on 15/4/28.
//  Copyright (c) 2015年 &#21608;&#25991;&#36713;. All rights reserved.
//

import Foundation


 class JSONAnalysis {
    class func finishSameJSONAnalysis(json: NSDictionary) -> NSDictionary {
        var JSONDic: NSDictionary!
        let respsArray = json.objectForKey("resps") as! NSArray
        for respsDic in respsArray {
            let resp = respsDic.objectForKey("resp") as! NSDictionary
            JSONDic = resp
        }
        return JSONDic
    }
    
    class func againPasswordJSONNaalysis(json: NSDictionary) -> String {
        var JSONDic: String!
        let respsArray = json.objectForKey("resps") as! NSArray
        for respsDic in respsArray {
            let msg = respsDic.objectForKey("msg") as! String
            JSONDic = msg
        }
        return JSONDic
    }
}